import React from 'react';
import ReactDOM from 'react-dom';
import '@/common/index.less';
import 'antd/dist/antd.min.css';

import {HashRouter, Switch} from 'react-router-dom';
import {renderRoutes} from 'react-router-config';
import routes from '@/routes';
import {ConfigProvider} from 'antd';
import zhCN from 'antd/lib/locale/zh_CN';

ReactDOM.render(
   <React.StrictMode>
      <ConfigProvider locale={zhCN}>
         <HashRouter>
            <Switch>
               {
                  renderRoutes(routes)
               }
            </Switch>
         </HashRouter>
      </ConfigProvider>
   </React.StrictMode>,
   document.getElementById('root')
);
